<template>
  <div  class="light-cell-container">
    <mt-cell title="" v-bind:title="itemdata.name" is-link :to="{path:'/lightDetail',params:{shopid: 'ddfdsre'},query:{a:itemdata}}">
      <mt-switch v-model="isOn"></mt-switch>
    </mt-cell>
  </div>
</template>

<script>
  import PropTypes from 'prop-types'
    export default {
      name: "plugcell",
      data(){
        return{
          isOn: true
        }
      },
      props:{
        itemdata:{
          type: Object
        }
      },
      methods: {
        cellAction : function(){
          this.$router.push({
            name:'lightDetail',
          });
        }
      }
    }
</script>

<style scoped>
  .light-cell-container{
    width: 100%;
    background-color: #38e2ff;
  }
</style>
